<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="jquery.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			table,tr,td{
				border: 1px solid silver;
			}
			td{
				width: 60px;
				height: 60px;
				line-height: 60px;
				text-align: center;
			}
		</style>
	</head>
	<body>
		<table>
			<tr>
				<td>2</td>
				<td>3</td>
				<td>9</td>
			</tr>
			<tr>
				<td>4</td>
				<td>5</td>
				<td>8</td>
			</tr>
			<tr>
				<td>1</td>
				<td>9</td>
				<td></td>
			</tr>
		</table>
		<script type="text/javascript">
			$("td:empty").css("background-color","pink");
			$("td:parent").css("background-color","skyblue");
		</script>
	</body>
</html>
